//
//  WzyFlowLayout.swift
//  FunSeeker
//
//  Created by 王泽宇 on 2017/3/28.
//  Copyright © 2017年 edu.Tongji.sse. All rights reserved.
//

import UIKit

class WzyFlowLayout: UICollectionViewFlowLayout {
    override var collectionViewContentSize: CGSize {
        let dataSource = self.collectionView?.delegate as! MoreController
        
        return CGSize(width: Int(ceil(Double(dataSource.itemTexts.count)/8))*285, height: 165)
    }
}
